package com.cws.project.cws.graduation.project.mapper;

import java.util.List;

import com.cws.project.cws.graduation.project.domain.GraduationProject;

/**
 * 毕设内容Mapper接口
 *
 * @author xyl
 * @date 2022-01-19
 */
public interface GraduationProjectMapper {
    /**
     * 查询毕设内容
     *
     * @param graduationProductId 毕设内容ID
     * @return 毕设内容
     */
    public GraduationProject selectGraduationProjectById(Long graduationProductId);

    /**
     * 查询毕设内容列表
     *
     * @param graduationProject 毕设内容
     * @return 毕设内容集合
     */
    public List<GraduationProject> selectGraduationProjectList(GraduationProject graduationProject);

    /**
     * 新增毕设内容
     *
     * @param graduationProject 毕设内容
     * @return 结果
     */
    public int insertGraduationProject(GraduationProject graduationProject);

    /**
     * 修改毕设内容
     *
     * @param graduationProject 毕设内容
     * @return 结果
     */
    public int updateGraduationProject(GraduationProject graduationProject);

    /**
     * 删除毕设内容
     *
     * @param graduationProductId 毕设内容ID
     * @return 结果
     */
    public int deleteGraduationProjectById(Long graduationProductId);

    /**
     * 批量删除毕设内容
     *
     * @param graduationProductIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteGraduationProjectByIds(String[] graduationProductIds);

    /**
     * 根据学生id获取是否已经提交
     * @param userId
     * @return
     */
    GraduationProject selectGraduationProjectByStudentId(Long userId);
}
